home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-12-10 | 1.3 KB | 53 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="5"
- "COUNT"="3"
- "UIPATH"="Program Options\Microsoft Office\MS Office 97"
- "NAME"="Clear Items"
- "VERSION"="1.00"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Clear Excel 97 MRU List"
- "TEXT 2"="Clear PowerPoint 97 MRU List"
- "TEXT 3"="Clear Access 97 MRU List"
- "DESCRIPTION 1"="If you do not want that other people can see the items you have opened, click the button."
- "AUTHOR"="Xteq Systems (Neil R. Turner)"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
- sP="HKCU\Software\Microsoft\Office\8.0\"
- s1="Excel\Recent File List\File"
- s2="PowerPoint\Recent File List\File"
- s3="Access\Settings\MRU"
-
- Sub Plugin_Initialize
- If RegPathExists(sP)=false then
- Call Disable()
- end if
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- if ElementIndex=1 then
- Call DoWork(1,s1)
- end if
- if ElementIndex=2 then
- Call DoWork(2,s2)
- end if
- if ElementIndex=3 then
- Call DoWork(3,s3)
- end if
- End Sub
-
- Sub DoWork(NUM,Val)
- for l=1 to 30
- DebugMsg(sP & VAL & l)
- v=RegReadValue(sP & VAL & l)
- If IsEmpty(v)=false then
- Call RegDeleteValue(sP & VAL & l)
- end if
- Next
- Call MsgInformation("Cleared!")
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-